import Immutable from 'immutable';
import _ from 'lodash'

const defaultState = new Immutable.List();

export default function assetReducer(state = {}, action) {
  switch(action.type) {
    case 'LOAD_ASSET_BY_ID':
      var object = {};
      object[action.id] = action.data
      var data = _.assign(object, state)
      return data
    case 'ERROR_ASSET_ID':
      return state;
    default:
      return state;
  }
}
